<?php
// +----------------------------------------------------------------------
// | CoreThink [ Simple Efficient Excellent ]
// +----------------------------------------------------------------------
// | Copyright (c) 2014 http://www.corethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: jry <598821125@qq.com> <http://www.corethink.cn>
// +----------------------------------------------------------------------

//开发者二次开发公共函数统一写入此文件，不要修改function.php以便于系统升级。
function get_usergroup_title($id){
	return M("UserGroup")->where(array('id'=>$id))->getField('title');
}
function get_userpos_title($id){
	return D('Descriptions')->where(array('tablename'=>'employee','fieldvalue'=>$id))->getField('title');
}
